package io.renren.modules.jxgkquestion.service.impl;

import io.renren.modules.jxgkquestion.dao.TestBankDao;
import io.renren.modules.jxgkquestion.entity.TestBankEntity;
import io.renren.modules.jxgkquestion.service.TestBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TestBankServiceImpl implements TestBankService{
    @Autowired
    TestBankDao testBankDao;
    public List<TestBankEntity> queryList(Map<String, Object> map){
        return testBankDao.queryList(map);
    }
    public int queryTotal(Map<String, Object> map){
        return  testBankDao.queryTotal(map);
    }
    public void deleteBatch(String[] termIds){
        testBankDao.deleteBatch(termIds);
    }
    public void save(TestBankEntity ste){
        testBankDao.save(ste);
    }
    public TestBankEntity queryObject(String index){
        return testBankDao.queryObject(index);
    }
    public void update(TestBankEntity ste){
        testBankDao.update(ste);
    }
}
